from enum import Enum


class ErrCode(Enum):
    RETURN_OK = "成功返回"
    RETURN_EMPTY = "查询为空"
    OFFSET_ERROR = "页码传参错误"
    LIMIT_ERROR = "条数传参错误"
    PARAMETER_EMPTY = "参数为空"
    PARAMETER_ERROR = "参数错误"
    PRICE_ERROR = "价格参数错误"
    USER_ERROR = "用戶信息错误"
    USER_NULL = "用戶不存在"
    PAGE_ARG_ERROR = "页码参数错误"
    MOBILE_ERROR = "手机号码格式不正确"

    MARKETORDER_ERROR = "挂单信息不存在"
    MARKETORDER_NULL = "挂单已结束"
    MARKETORDER_TRADE = "挂单信息已存在"
    MARKETORDER_TRADEING = "挂单交易中，不能操作"
    MARKET_AMOUNT_EXCEPT = "当前订单不足以抵扣仓储费/手续费，不能交易"

    ATTENTION_HAVE = "已关注"
    COLLECTED = '已收藏'
    GB_HAD_OWNER = '该唯一码已有主人'
    GB_HAD_LOCKED_BY_OTHER = '该唯一码已经被别人锁定'

    COMMENT_HAVE = "已评论"
